const Mock = require('mockjs')

const NameList = []
const count = 100

for (let i = 0; i < count; i++) {
    NameList.push(Mock.mock({
        name: '@first'
    }))
}
NameList.push({ name: 'mock-Pan' })
module.exports = [
    {
        url: '/myJavaScript/fandPageList',
        type: 'get',
        response: _ => {
            return {
                code: 20000,
                data: {
                    total: 100,
                    'content|10': [
                        {
                            id: '@id',
                            email: '@email',
                            attentionDate: '@date',// 'T'是获取时间辍
                            userName: '@name()',
                            attention: "暂无",
                            isAttention: '@boolean',
                            exceptional: '@float(1000, 15000, 0, 2)',
                            offAttention: '@cparagraph()',
                            'status|1': ['success', 'pending']
                        }
                    ]
                }
            }
        }
    },

    {
        url: '/myJavaScript/getTotalAmount',
        type: 'get',
        response: _ => {
            return {
                code: 20000,
                data: {
                    total: 1,
                    'content|1': [
                        {
                            exceptional: '@float(10000, 150000, 0, 2)',
                        }
                    ]
                }
            }
        }
    }
]
